import UIKit

var a = 5 ... 10
var b = 1 ..< 3
var c = ...3
var d = ..<3
var e = 1...

var f = "a" ... "z"
var g = 0.0 ... 10.0
print(type(of: a))
print(type(of: b))
print(type(of: c))
print(type(of: d))
print(type(of: e))
print(type(of: f))
print(type(of: g))

for i in a {
  print(i)
}

print(c.contains(-1999))
print(f.contains("c"))
print(g.contains(8.8888888))

a.count
// c.count
a.lowerBound
a.upperBound
// print(c.lowerBound)
//整形闭区间才可以遍历 
